import { http } from '@/utils/http'
import type { tenantextendto } from './types'



// export async function GetActivePhonesByPhoneID(
//   phoneid: string
// ): Promise<Array<PhoneDto>> {
//   return await http<Array<PhoneDto>>({
//     url: `/api/app/phone/active-phones-by-phone-id/${phoneid}`,
//     method: 'GET'
//   })
// }
export async function getextendbydomain(
  domain: string
): Promise<tenantextendto> {
  return await http<tenantextendto>({
    url: `/api/app/tenant-extend/by-domain?domain=${domain}`,
    method: 'GET',
  })
}